﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FoobarFootball.Web.Models;

namespace FoobarFootball.Web.Controllers
{
    public class PlayerController : Controller
    {
        public ActionResult Index()
        {
            List<PlayerViewModel> players = new List<PlayerViewModel>();
            PlayerViewModel player1 = new PlayerViewModel();
            player1.Id = 108625;
            player1.Name = "Terry";
            player1.Formation = "4-4-2";
            player1.Position = "CB";
            player1.Score = 80;
            players.Add(player1);
            PlayerViewModel player2 = new PlayerViewModel();
            player2.Id = 2004697;
            player2.Name = "Lampard";
            player2.Formation = "4-3-3";
            player2.Position = "MC";
            player2.Score = 78;
            players.Add(player2);
            PlayerViewModel player3 = new PlayerViewModel();
            player3.Id = 6201102;
            player3.Name = "Drogba";
            player3.Formation = "4-3-3";
            player3.Position = "FC";
            player3.Score = 78;
            players.Add(player3);
            PlayerViewModel player4 = new PlayerViewModel();
            player4.Id = 5640119;
            player4.Name = "Cech";
            player4.Formation = "4-3-3";
            player4.Position = "GK";
            player4.Score = 56;
            players.Add(player4);
            PlayerViewModel player5 = new PlayerViewModel();
            player5.Id = 317273;
            player5.Name = "Alex";
            player5.Formation = "5-3-2";
            player5.Position = "CB";
            player5.Score = 72;
            players.Add(player5);
            return View(players);
        }
    }
}
